package com.woniuxy.mapper;

import com.woniuxy.pojo.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author 29331
* @description 针对表【t_order(订单管理表)】的数据库操作Mapper
* @createDate 2025-06-04 16:14:26
* @Entity com.woniuxy.pojo.Order
*/
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    @Select("select count(*) from t_order ")
    Integer getTotalCount();

    @Select("select count(*) from t_order where order_status = #{orderStatus}")
    Integer getStatusCount(int orderStatus);
}




